home *** CD-ROM | disk | FTP | other *** search
- on(release){
- if(_root.money >= 220 && _root.castleHp < _root.castleMaxHp)
- {
- _root.money -= 220;
- _root.castleHp += 50;
- messo = "Got 50 HP!";
- if(_root.castleHp > _root.castleMaxHp)
- {
- _root.castleHp = _root.castleMaxHp;
- }
- }
- else if(_root.castleHp >= _root.castleMaxHp)
- {
- messo = "HP already maxed!";
- }
- else
- {
- messo = "Not Enough Money!";
- }
- }
-